<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/layouts/content.xhtml">
	<ui:define name="content">
		<h:form id="searchHireForm">
			<h2>
				<h:outputText value="#{messageSource['search.headline']}"
					class="headline" />
			</h2>
			<div id="searchHireFormData">
				<table>

					<tr>
						<td>#{messageSource['searchHire.car']}</td>
						<td><p:inputText id="car" value="#{searchHireBean.car}" onkeypress="if (event.keyCode == 13){PrimeFaces.ajax.AjaxRequest('/ttn/en/searchHire?execution=e1s1',{formId:'searchHireForm',async:false,global:true,source:'searchHireForm:j_idt16',process:'@all'});}">
						<p:ajax event="change" update="@form" />
						
						</p:inputText>
							<h:message for="car"></h:message></td>
					</tr>
					
					<tr>
						<td colspan="2"><p:commandLink  action="submit" value="#{messageSource['search.startSearch']}"/>
						</td>
					</tr>
				</table>
			</div>
			<p:dataTable value="#{searchHireBean.results}" var="carhire"
				id="results">
				<p:column id="car" sortBy="#{carhire.car}">
					<f:facet name="header">#{messageSource['searchHire.car']}</f:facet>
<h:outputText value="#{carhire.car}"></h:outputText>
					
				</p:column>
				

			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>